<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<#include "header.ftl">
<script type="text/javascript">
function test(){
	$.ajax({ 
		url: "/test!test",
		context: document.body, 
		dataType:'json',
		success: function(data){
	    	$("#status").html(data.status);
	    	$("#msg").html(data.msg);
	  	}
	});
}

</script>
</head>
<body>
	<#assign x=2.582/>
	<a href="#" onclick="reloadUrl('/test!post')">Test post</a>
	<hr>
	<p>Hello everyone !</p><br>
	<div id="status"></div><br>
	<div id="msg"></div><br>
	<input type="button" onclick="test()" value="Complete" />
	<hr>
	<form action="/test!test">
		<table>
			<tr>
				<th>id</th>
				<th>title</th>
				<th>content</th>
			</tr>
			<tr>
				<td><label>This is id.</label></td>
				<td><input name="testBean.title" type="text"></td>
				<td><textarea rows="5" cols="5" name="testBean.content"></textarea></td>
			</tr>
			<tr><td colspan="3"><input type="submit" value="submit"></td></tr>
		</table>
	</form>
	<img title="yzm" src="/code_code.action">
</body>
</html>